
package com.example.hjlquickstartdemo.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * 传入的id和版本号
 * @author HeJiaLe
 * @date 2023/07/17 16:44
 */

@Data
@Slf4j
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "IdVersion",description = "查询用户所用id和版本号")
public class IdVersion {
    /**
     *  主键
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    /**
     * 行的版本
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long version;
}
